import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './ApplyStatus.less';

/**
 * 申请状态圆圈
 * @param status
 * @returns {*}
 * @constructor
 */
const ApplyStatus = ({ status }) => (
    <span
        className={cn(styles.status, {
            [styles[`status-${status}`]]: true
        })}
    />
);

ApplyStatus.propTypes = {
    /**
     * 申请状态
     */
    status: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
};

export default ApplyStatus;
